package com.msite.framework

/**
 * Created by tpeng on 2015/11/23.
 */
@SuppressWarnings("serial")
class JsonResult<T> implements Serializable {

    public JsonResult(){}

    public JsonResult(int code, String msg){
        this.code = code
        this.msg = msg
    }

    public JsonResult(int code, String msg, Object data){
        this.code = code
        this.msg = msg
        this.data = data
    }

    public static int CODE_OK = 200
    public static int CODE_FAIL = 500

    public static int CODE_NO_PERM = 9999 //无权限
    public static final int CODE_EXCEPTION = 9998; //异常错误

    int code;
    String msg;
    T data;

}
